package com.park.service.impl.user;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.park.client.model.user.UserMsgStatusModel;
import com.park.client.service.user.UserMsgStatusService;
import com.park.dao.user.UserMsgStatusMapper;
import com.park.service.impl.base.BaseServiceImpl;

@Service("userMsgStatusService")
public class UserMsgStatusServiceImpl extends BaseServiceImpl<UserMsgStatusModel> implements UserMsgStatusService {
	
	@Autowired
	private  UserMsgStatusMapper  userMsgStatusMapper;

	@Override
	public boolean deleteByPrimaryKey(Long id) {
		return userMsgStatusMapper.deleteByPrimaryKey(id)==1;
	}
	@Override
	public boolean insertSelective(UserMsgStatusModel record) {
		return userMsgStatusMapper.insertSelective(record)==1;
	}
	@Override
	public UserMsgStatusModel selectByPrimaryKey(Long id) {
		return userMsgStatusMapper.selectByPrimaryKey(id);
	}
	@Override
	public boolean updateByPrimaryKeySelective(UserMsgStatusModel record) {
		return userMsgStatusMapper.updateByPrimaryKeySelective(record)==1;
	}
	@Override
	public boolean updateByPrimaryKey(UserMsgStatusModel record) {
		return userMsgStatusMapper.updateByPrimaryKey(record)==1;
	}
	@Override
	public boolean updateUserMsgStatus(UserMsgStatusModel record) {
		return userMsgStatusMapper.updateUserMsgStatus(record)==1;
	}
	
}
